<?php

namespace app\api\controller;

class BaseController extends Controller
{
    
    /* @var \app\api\model\User $user */
    protected $user;
    
    /**
     * 构造方法
     * @throws \app\common\exception\BaseException
     * @throws \think\exception\DbException
     */
    public function _initialize()
    {
        parent::_initialize();
        $this->user = $this->getUser();   // 用户信息
    }
}